package com.migration.model.newdb;

import jakarta.persistence.*;
import lombok.Data;
import java.math.BigDecimal;
import java.io.Serializable;

/**
 * 建议措施表 实体类
 * 表名：risk_suggestion
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "risk_suggestion")
public class RiskSuggestion implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 租户ID
     */
    @Column(name = "tenant_id", nullable = false)
    private Long tenantId;
    
    /**
     * 部门ID
     */
    @Column(name = "department_id", nullable = false)
    private Long departmentId;
    
    /**
     * 描述
     */
    @Column(name = "suggestion_desc", nullable = false, length = 100)
    private String suggestionDesc;
    
    /**
     * pfd
     */
    @Column(name = "pfd", nullable = false)
    private BigDecimal pfd;
    
    /**
     * 建议措施类型
     */
    @Column(name = "suggestion_type", nullable = false)
    private Integer suggestionType;
    
    /**
     * 责任人
     */
    @Column(name = "responsible_person", length = 50)
    private String responsiblePerson;
    
    /**
     * 完成时间yyyy-MM-dd
     */
    @Column(name = "completion_date", length = 10)
    private String completionDate;
    
    /**
     * 优先级
     */
    @Column(name = "priority", length = 10)
    private String priority;
    
    /**
     * 是否关联了事故链0：否，1：是
     */
    @Column(name = "accident_chains_status")
    private Boolean accidentChainsStatus;
    
    /**
     * 事故链数量
     * 默认值: 0
     */
    @Column(name = "accident_chains_num")
    private Integer accidentChainsNum;
    
    /**
     * 创建时间yyyy-MM-dd HH:mm:ss
     */
    @Column(name = "create_time", length = 20)
    private String createTime;
    
    /**
     * 创建人
     */
    @Column(name = "create_by")
    private Long createBy;
    
    /**
     * 修改时间yyyy-MM-dd HH:mm:ss
     */
    @Column(name = "update_time", length = 20)
    private String updateTime;
    
    /**
     * 修改人
     */
    @Column(name = "update_by")
    private Long updateBy;
    
    /**
     * 是否删除（0：正常，1：删除）
     * 默认值: 0
     */
    @Column(name = "is_del")
    private Byte isDel;
    
    @Override
    public String toString() {
        return "RiskSuggestion{" +
            "id=" + id +
            ", tenantId=" + tenantId +
            ", departmentId=" + departmentId +
            ", suggestionDesc=" + suggestionDesc +
            ", pfd=" + pfd +
            ", suggestionType=" + suggestionType +
            ", responsiblePerson=" + responsiblePerson +
            ", completionDate=" + completionDate +
            ", priority=" + priority +
            ", accidentChainsStatus=" + accidentChainsStatus +
            ", accidentChainsNum=" + accidentChainsNum +
            ", createTime=" + createTime +
            ", createBy=" + createBy +
            ", updateTime=" + updateTime +
            ", updateBy=" + updateBy +
            ", isDel=" + isDel +
        '}';
    }
} 